﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Tender.Tool
{
    public partial class VerifyMessage : Form
    {
        public VerifyMessage()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void uiButton2_Click(object sender, EventArgs e)
        {
            DialogResult=DialogResult.No;
            Close();
        }
        /// <summary>
        /// 确认
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void uiButton1_Click(object sender, EventArgs e)
        {
            if(uiTextBox1.Text.Trim()=="321456")
            DialogResult = DialogResult.OK;
            else
            {
                Sunny.UI.UIMessageBox.ShowError("密码错误,验证失败",true,true);
                DialogResult = DialogResult.No;
            }
            Close();

        }
    }
}
